Skip to content

eth: add traceCallBlock method#24874

Closed
s1na wants to merge 1 commit into
ethereum:masterfrom
s1na:trace-batch-call
Closed

eth: add traceCallBlock method#24874
s1na wants to merge 1 commit into
ethereum:masterfrom
s1na:trace-batch-call

Conversation

@s1na
Copy link
Copy Markdown
Contributor

@s1na s1na commented May 13, 2022

It hasn't been tested much. There's much room for improvement
e.g.:

> debug.traceCallBlock({number: '0x20', transactions: [{from: eth.accounts[0], value:"0x1", gasPrice: "0xffffffff", gas: "0xffff", input: "0x43"}]}, "latest")[0].result
{
  failed: false,
  gas: 53018,
  returnValue: "",
  structLogs: [{
      depth: 1,
      gas: 12519,
      gasCost: 2,
      op: "NUMBER",
      pc: 0,
      stack: []
  }, {
      depth: 1,
      gas: 12517,
      gasCost: 0,
      op: "STOP",
      pc: 1,
      stack: ["0x20"]
  }]
}

Co-authored-by: Martin Holst Swende <martin@swende.se>
@s1na
Copy link
Copy Markdown
Contributor Author

s1na commented Sep 27, 2022

Closing in favour of #25743

@s1na s1na closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant